import {
  IAuxiliaryCheck,
  IB04_53,
  IBaseInfo,
  ICheckBody,
  IExistIssue,
  IHealthEvaluation,
  ILifeStyle,
  IOrganFunction,
  ITerminalB04_53,
  ITreatmentCondition,
} from "./IA00_04";
import { IA00_03 } from "./IA00_03";
import { IA00_02 } from "./IA00_02";
import { randomRound } from "@/utils/randomUtils";

export const createLifestyle = (): ILifeStyle => {
  return {
    a00_04_186: "",
    a00_04_187: "",
    a00_04_188: "",
    a00_04_189: "",
    a00_04_190: "",
    a00_04_191: "",
    a00_04_24: "",
    a00_04_25: undefined,
    a00_04_26: undefined,
    a00_04_27: "",
    a00_04_27_s: "",
    a00_04_27_v: [],
    a00_04_28: ['1'],
    a00_04_29: "1",
    a00_04_30: undefined,
    a00_04_31: undefined,
    a00_04_32: undefined,
    a00_04_33: "1",
    a00_04_34: undefined,
    a00_04_35: "",
    a00_04_36: undefined,
    a00_04_37: undefined,
    a00_04_38: "",
    a00_04_39: [],
    a00_04_40: "",
    a00_04_41: "1",
    a00_04_42: "",
    a00_04_43: undefined,
    a00_04_44: "",
    a00_04_45: "",
    a00_04_46: "",
    a00_04_47: "",
    a00_04_48: "",
    a00_04_49: "",
    a00_04_50: "",
    a00_04_51: "",
    a00_04_52: "",
  };
};

export const createOrganFunction = (): IOrganFunction => {
  return {
    a00_04_193_1: [],
    a00_04_193_2: [],
    a00_04_193_3: [],
    a00_04_193_4: [],
    a00_04_194_1: [],
    a00_04_194_2: [],
    a00_04_194_3: [],
    a00_04_194_4: [],
    a00_04_195_1: [],
    a00_04_195_2: [],
    a00_04_195_3: [],
    a00_04_195_4: [],
    a00_04_53: "1",
    a00_04_54: "1",
    a00_04_55: "",
    a00_04_56: "",
    a00_04_57: "",
    a00_04_58: "1",
    a00_04_59: "",
    a00_04_60: "",
    a00_04_61: "",
    a00_04_62: "",
    a00_04_63: "1",
  };
};

export const createCheckBody = (): ICheckBody => {
  return {
    a00_04_100: "",
    a00_04_101: "1",
    a00_04_102: "",
    a00_04_103: "1",
    a00_04_104: "",
    a00_04_105: "1",
    a00_04_106: "",
    a00_04_107: "",
    a00_04_135: "1",
    a00_04_136: "",
    a00_04_65: "1",
    a00_04_66: "",
    a00_04_67: "1",
    a00_04_68: "",
    a00_04_69: "1",
    a00_04_70: "",
    a00_04_71: "1",
    a00_04_72: "",
    a00_04_73: "1",
    a00_04_74: "",
    a00_04_75: "1",
    a00_04_76: "",
    a00_04_77: undefined,
    a00_04_78: "1",
    a00_04_79: "1",
    a00_04_80: "",
    a00_04_81: "1",
    a00_04_82: "",
    a00_04_83: "1",
    a00_04_84: "",
    a00_04_85: "1",
    a00_04_86: "",
    a00_04_87: "1",
    a00_04_88: "",
    a00_04_89: "1",
    a00_04_90: "",
    a00_04_91: "1",
    a00_04_92: "2",
    a00_04_93: "1",
    a00_04_94: "",
    a00_04_95: ['1'],
    a00_04_96: "",
    a00_04_97: "1",
    a00_04_98: "",
    a00_04_99: "1",
  };
};
/**
 *  auxiliaryCheck: IAuxiliaryCheck
 *   existIssue: IExistIssue
 *   treatmentCondition: ITreatmentCondition
 *   healthEvaluation: IHealthEvaluation
 *   baseInfo: IBaseInfo
 *   userData: IA00_03
 *
 *
 *
 *
 */
export const createAuxiliaryCheck = (): IAuxiliaryCheck => {
  return {
    a00_04_120: "",
    a00_04_121: "",
    a00_04_122: "",
    a00_04_123: "",
    a00_04_124: "",
    a00_04_108: undefined,
    a00_04_109: undefined,
    a00_04_110: undefined,
    a00_04_111: undefined,
    a00_04_112: "",
    a00_04_113: "",
    a00_04_114: "",
    a00_04_115: "",
    a00_04_116: "",
    a00_04_117: "",
    a00_04_118: undefined,
    a00_04_119: "1",
    a00_04_125: undefined,
    a00_04_126: undefined,
    a00_04_127: undefined,
    a00_04_128: undefined,
    a00_04_129: undefined,
    a00_04_130: undefined,
    a00_04_131: undefined,
    a00_04_132: undefined,
    a00_04_133: undefined,
    a00_04_134: "1",
    a00_04_137: "1",
    a00_04_138: "",
    a00_04_139: "1",
    a00_04_140: "",
    a00_04_141: "1",
    a00_04_141f: "",
    a00_04_142: "1",
    a00_04_142f: "",
    a00_04_143: "1",
    a00_04_144: "",
    a00_04_145: "",
    a00_04_192: "",
  };
};

export const createExistIssue = (): IExistIssue => {
  return {
    a00_04_155: ['1'],
    a00_04_156: "",
    a00_04_157: ['1'],
    a00_04_158: "",
    a00_04_159: ['1'],
    a00_04_160: "",
    a00_04_161: ['1'],
    a00_04_162: "",
    a00_04_163: ['1'],
    a00_04_164: "",
    a00_04_165: "1",
    a00_04_166: "",
    a00_04_167: "1",
    a00_04_168: "",
  };
};

export const createTreatmentCondition = (): ITreatmentCondition => {
  return {
    familyHospitalBed: [],
    hospitalHistory: [],
    medicationSituation: [],
  };
};

export const createHealthEvaluation = (): IHealthEvaluation => {
  return {
    a00_04_169: "",
    a00_04_170: "",
    a00_04_171: "",
    a00_04_172: "",
    a00_04_173: "",
    a00_04_174: ['5', '6', '7', '8', '9', '10'],
    a00_04_175: [],
    a00_04_176: "",
    a00_04_177: "",
    a00_04_178: "",
    a00_04_203: "",
    a00_04_204: "",
    a00_04_215: "1",
    a00_04_219: "",
    nonImmunization: [],
  };
};

export const createBaseInfo = (): IBaseInfo => {
  return {
    id_no: "",
    a00_03_03: "",
    a00_03_05: "",
    a00_04_01: "",
    a00_04_02: "",
    a00_04_03: "",
    a00_04_04: "",
    a00_04_05: ['1'],
    a00_04_06: "",
    //
    a00_04_07: randomRound(36, 37),
    a00_04_08: undefined,
    a00_04_09: undefined,
    a00_04_10: undefined,
    a00_04_11: undefined,
    a00_04_12: undefined,
    a00_04_13: undefined,
    a00_04_14: undefined,
    a00_04_15: undefined,
    a00_04_16: undefined,
    a00_04_17: undefined,
    a00_04_184: "1",
    a00_04_20: "1",
    a00_04_205: "1",
    a00_04_21: undefined,
    a00_04_22: "1",
    a00_04_23: undefined,
  };
};
export const createPersonalArchive = (): IA00_03 => {
  return {
    a00_03_70: "",
    institution_id: "",
    a00_031_07: "",
    a00_031_10: "",
    a00_031_13: "",
    a00_03_03: "",
    a00_03_04: "",
    a00_03_05: "",
    a00_03_07: "",
    a00_03_08: "",
    a00_03_09: "",
    a00_03_10: "",
    a00_03_11: "",
    a00_03_111: "",
    a00_03_112: "",
    a00_03_113: "",
    a00_03_114: "",
    a00_03_115: "",
    a00_03_116: "",
    a00_03_12: "",
    a00_03_120: undefined,
    a00_03_121: [],
    a00_03_13: "",
    a00_03_132: "",
    a00_03_133: "",
    a00_03_134: "",
    a00_03_135: "",
    a00_03_136: undefined,
    a00_03_138: "",
    a00_03_14: "",
    a00_03_143: "",
    a00_03_144: "",
    a00_03_15: undefined,
    a00_03_16: "",
    a00_03_17: "",
    a00_03_18: undefined,
    a00_03_19: undefined,
    a00_03_20: undefined,
    a00_03_21: undefined,
    a00_03_22: "",
    a00_03_23: undefined,
    a00_03_24: [],
    a00_03_25: "",
    a00_03_26: [],
    a00_03_27: "",
    a00_03_28: [],
    a00_03_29: "",
    a00_03_30: [],
    a00_03_31: "",
    a00_03_32: [],
    a00_03_33: "",
    a00_03_34: [],
    a00_03_35: "",
    a00_03_36: "",
    a00_03_37: "",
    a00_03_38: [],
    a00_03_39: "",
    a00_03_51: "",
    a00_03_52: "",
    a00_03_53: "",
    a00_03_54: "",
    a00_03_61: "",
    a00_03_65: undefined,
    a00_03_69: [],
    a00_03_92: "",
    a00_03_93: "",
    a00_03_94: "",
    a00_03_95: "",
    a00_03_96: "",
    a00_03_97: "",
    a00_03_99: "",

    family_id: "",
    organizeCode: "",
    disease: [],
    diseases: "",
    surgery: [],
    surgeries: "",
    transfuse: [],
    transfusions: "",
    trauma: [],
    traumas: "",
    gao:"",
    tang:""
  };
};

export const createFamilyArchive = (): IA00_02 => {
  return {
    area_no: "",
    id_no: "",
    key: "",
    a00_02_00: "",
    a00_02_01: "",
    a00_02_04: "",
    a00_02_05: "",
    a00_02_06: "",
    a00_02_07: "",
    a00_02_08: "",
    a00_02_09: "",
    a00_02_10: "",
    a00_02_100: "",
    a00_02_111: "",
    a00_02_112: "",
    a00_02_113: "",
    a00_02_114: "",
    a00_02_115: "",
    a00_02_119: "",
    a00_02_13: "",
    a00_02_14: undefined,
    a00_02_15: undefined,
    a00_02_16: "",
    a00_02_18: undefined,
    a00_02_19: undefined,
    a00_02_20: "",
    a00_02_22: "",
    a00_02_24: undefined,
    a00_02_25: undefined,
    a00_02_26: undefined,
    a00_02_27: undefined,
    a00_02_28: undefined,
    a00_02_29: "",
    a00_02_31: "",
    a00_02_35: undefined,
    a00_02_36: undefined,
    a00_02_37: "",
    a00_02_39: "",
    a00_02_40: "",
    a00_02_41: "",
    a00_02_42: "",
    a00_02_43: "",
    a00_02_60: "",
    a00_02_90: "",
    a00_02_91: "",
    a00_02_92: "",
    a00_02_93: "",
    a00_02_94: "",
    a00_02_95: "",
    a00_02_96: "",
    a00_02_97: "",
    a00_02_99: "",
  };
};
export const createTerminalB04_53 = (): ITerminalB04_53 => {
  return {
    id: "",
    //是否同步 0 未同步  1已同步
    measureTime: undefined,
    synchronous: 0,
    // 二维码
    qr_code_id: undefined,
    // 性别
    sex: "",
    data_id: "",
    /**身份证 */
    cardId: "",
    /**用户名 */
    userName: "",
    /**项目 */
    article: "",
    a00_03_03: "",
    a00_04_00: "",
    b04_053_01: "",
    b04_053_02: "",
    b04_053_03: "",
    b04_053_04: "",
    b04_053_08_1: undefined,
    b04_053_08_10: undefined,
    b04_053_08_11: undefined,
    b04_053_08_12: undefined,
    b04_053_08_13: undefined,
    b04_053_08_14: undefined,
    b04_053_08_15: undefined,
    b04_053_08_16: undefined,
    b04_053_08_17: undefined,
    b04_053_08_18: undefined,
    b04_053_08_19: undefined,
    b04_053_08_2: undefined,
    b04_053_08_20: undefined,
    b04_053_08_21: undefined,
    b04_053_08_22: undefined,
    b04_053_08_23: undefined,
    b04_053_08_24: undefined,
    b04_053_08_25: undefined,
    b04_053_08_26: undefined,
    b04_053_08_27: undefined,
    b04_053_08_28: undefined,
    b04_053_08_29: undefined,
    b04_053_08_3: undefined,
    b04_053_08_30: undefined,
    b04_053_08_31: undefined,
    b04_053_08_32: undefined,
    b04_053_08_33: undefined,
    b04_053_08_4: undefined,
    b04_053_08_5: undefined,
    b04_053_08_6: undefined,
    b04_053_08_7: undefined,
    b04_053_08_8: undefined,
    b04_053_08_9: undefined,
    b04_053_09: undefined,
    b04_053_10: undefined,
    b04_053_11: undefined,
    b04_053_12: undefined,
    b04_053_13: undefined,
    b04_053_14: undefined,
    b04_053_15: undefined,
    b04_053_16: undefined,
    b04_053_17: undefined,
    b04_053_18: "",
    b04_053_19: "",
    b04_053_20: "",
    b04_053_21: "",
    b04_053_22: "",
    b04_053_23: "",
    b04_053_24: "",
    b04_053_25: "",
    b04_053_26: "",
    b04_053_27: [],
    b04_053_28: [],
    b04_053_29: [],
    b04_053_30: [],
    b04_053_31: [],
    b04_053_32: [],
    b04_053_33: [],
    b04_053_34: [],
    b04_053_35: [],
    b04_053_36: "",
    b04_053_37: "",
    b04_053_38: "",
    b04_053_39: "",
    b04_053_40: "",
    b04_053_41: "",
    b04_053_42: "",
    b04_053_43: "",
    b04_053_44: "",
    b04_053_45: "",
    eid: "",
    qygrid: "",
    qyid: "",
    qytid: "",
    ryid: "",
    srcode: "",
    xqbm: "",
    zxjg: "",
  };
};
export const createB04_53 = (): IB04_53 => {
  return {
    a00_03_03: "",
    a00_04_00: "",
    b04_053_01: "",
    b04_053_02: "",
    b04_053_03: "",
    b04_053_04: "",
    b04_053_08_1: undefined,
    b04_053_08_10: undefined,
    b04_053_08_11: undefined,
    b04_053_08_12: undefined,
    b04_053_08_13: undefined,
    b04_053_08_14: undefined,
    b04_053_08_15: undefined,
    b04_053_08_16: undefined,
    b04_053_08_17: undefined,
    b04_053_08_18: undefined,
    b04_053_08_19: undefined,
    b04_053_08_2: undefined,
    b04_053_08_20: undefined,
    b04_053_08_21: undefined,
    b04_053_08_22: undefined,
    b04_053_08_23: undefined,
    b04_053_08_24: undefined,
    b04_053_08_25: undefined,
    b04_053_08_26: undefined,
    b04_053_08_27: undefined,
    b04_053_08_28: undefined,
    b04_053_08_29: undefined,
    b04_053_08_3: undefined,
    b04_053_08_30: undefined,
    b04_053_08_31: undefined,
    b04_053_08_32: undefined,
    b04_053_08_33: undefined,
    b04_053_08_4: undefined,
    b04_053_08_5: undefined,
    b04_053_08_6: undefined,
    b04_053_08_7: undefined,
    b04_053_08_8: undefined,
    b04_053_08_9: undefined,
    b04_053_09: undefined,
    b04_053_10: undefined,
    b04_053_11: undefined,
    b04_053_12: undefined,
    b04_053_13: undefined,
    b04_053_14: undefined,
    b04_053_15: undefined,
    b04_053_16: undefined,
    b04_053_17: undefined,
    b04_053_18: "",
    b04_053_19: "",
    b04_053_20: "",
    b04_053_21: "",
    b04_053_22: "",
    b04_053_23: "",
    b04_053_24: "",
    b04_053_25: "",
    b04_053_26: "",
    b04_053_27: [],
    b04_053_28: [],
    b04_053_29: [],
    b04_053_30: [],
    b04_053_31: [],
    b04_053_32: [],
    b04_053_33: [],
    b04_053_34: [],
    b04_053_35: [],
    b04_053_36: "",
    b04_053_37: "",
    b04_053_38: "",
    b04_053_39: "",
    b04_053_40: "",
    b04_053_41: "",
    b04_053_42: "",
    b04_053_43: "",
    b04_053_44: "",
    b04_053_45: "",
    eid: "",
    qygrid: "",
    qyid: "",
    qytid: "",
    ryid: "",
    srcode: "",
    xqbm: "",
    zxjg: "",
  };
};
